<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('请求映射详情列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li>
								名称：<input type="text" name="requestItem"/>
							</li>

							<li>
								spx协议id：<input type="text" name="spxRequestSeqId"/>
							</li>

							<li>
								cpack协议id：<input type="text" name="cpackRequestSeqId"/>
							</li>

							<li>
								t2协议id：<input type="text" name="t2RequestSeqId"/>
							</li>

							<li>
								spx协议值：<input type="text" name="spxDefaultVal"/>
							</li>

							<li>
								cpack协议值：<input type="text" name="cpackDefaultVal"/>
							</li>

							<li>
								t2协议值：<input type="text" name="t2DefaultVal"/>
							</li>

							<li>
								序号：<input type="text" name="requestItemNo"/>
							</li>

							<li>
								输入输出：<input type="text" name="inOut"/>
							</li>

							<li>
								请求映射描述：<input type="text" name="rmdDisc"/>
							</li>

							<li>
								请求映射id：<input type="text" th:value="${rmId}" name="rmId"/>
							</li>

							<li>
								默认值：<input type="text" name="defaultVal"/>
							</li>

							<li>
								不显示：<input type="text" name="notShow"/>
							</li>

							<li>
								kesb请求序列号：<input type="text" name="kesbRequestSeqId"/>
							</li>

							<li>
								kesb默认值：<input type="text" name="kesbDefaultVal"/>
							</li>

							<li>
								spx名称：<input type="text" name="spxName"/>
							</li>

							<li>
								cpack名称：<input type="text" name="cpackName"/>
							</li>

							<li>
								t2名称：<input type="text" name="t2Name"/>
							</li>

							<li>
								kesb名称：<input type="text" name="kesbName"/>
							</li>

							<li>
								hr名称：<input type="text" name="hrName"/>
							</li>

							<li>
								hr请求id：<input type="text" name="hrRequestSeqId"/>
							</li>

							<li>
								hr默认值：<input type="text" name="hrDefaultVal"/>
							</li>

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm" id="toolbar" role="group">
				<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:autoRequesmappingDetail:add">
					<i class="fa fa-plus"></i> 添加
				</a>
				<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="system:autoRequesmappingDetail:edit">
					<i class="fa fa-edit"></i> 修改
				</a>
				<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:autoRequesmappingDetail:remove">
					<i class="fa fa-remove"></i> 删除
				</a>
				<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:autoRequesmappingDetail:export">
						<i class="fa fa-download"></i> 导出
				 </a>
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:autoRequesmappingDetail:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:autoRequesmappingDetail:remove')}]];
        var prefix = ctx + "system/autoRequesmappingDetail";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export",
                modalName: "请求映射详情",
                queryParams: queryParams,
                showExport: true,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'rmdId', 
					title : '主键id',
					visible: false
				},
				{
					field : 'requestItem', 
					title : '名称',
					sortable: true
				},
				{
					field : 'spxRequestSeqId', 
					title : 'spx协议id',
					sortable: true
				},
				{
					field : 'cpackRequestSeqId', 
					title : 'cpack协议id',
					sortable: true
				},
				{
					field : 't2RequestSeqId', 
					title : 't2协议id',
					sortable: true
				},
				{
					field : 'spxDefaultVal', 
					title : 'spx协议值',
					sortable: true
				},
				{
					field : 'cpackDefaultVal', 
					title : 'cpack协议值',
					sortable: true
				},
				{
					field : 't2DefaultVal', 
					title : 't2协议值',
					sortable: true
				},
				{
					field : 'requestItemNo', 
					title : '序号',
					sortable: true
				},
				{
					field : 'inOut', 
					title : '输入输出',
					sortable: true
				},
				{
					field : 'rmdDisc', 
					title : '请求映射描述',
					sortable: true
				},
				{
					field : 'rmId', 
					title : '请求映射id',
					sortable: true
				},
				{
					field : 'defaultVal', 
					title : '默认值',
					sortable: true
				},
				{
					field : 'notShow', 
					title : '不显示',
					sortable: true
				},
				{
					field : 'kesbRequestSeqId', 
					title : 'kesb请求序列号',
					sortable: true
				},
				{
					field : 'kesbDefaultVal', 
					title : 'kesb默认值',
					sortable: true
				},
				{
					field : 'spxName', 
					title : 'spx名称',
					sortable: true
				},
				{
					field : 'cpackName', 
					title : 'cpack名称',
					sortable: true
				},
				{
					field : 't2Name', 
					title : 't2名称',
					sortable: true
				},
				{
					field : 'kesbName', 
					title : 'kesb名称',
					sortable: true
				},
				{
					field : 'hrName', 
					title : 'hr名称',
					sortable: true
				},
				{
					field : 'hrRequestSeqId', 
					title : 'hr请求id',
					sortable: true
				},
				{
					field : 'hrDefaultVal', 
					title : 'hr默认值',
					sortable: true
				},
		        {
		            title: '操作',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	var actions = [];
		            	actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.rmdId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.rmdId + '\')"><i class="fa fa-remove"></i>删除</a>');
						return actions.join('');
		            }
		        }]
            };
            $.table.init(options);
        });

        function queryParams(params) {
            var search = $.table.queryParams(params);
            $("#rmId").val(search.rmId);
            return search;
        }

    </script>
</body>
</html>